package com.ruoyi.thirdpart.domain;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author EDZ
 * @Configuration 相当于 spring中的 application.xml
 * 参考文章：https://blog.csdn.net/PotatoWatermelon/article/details/125487951
 * 解决 'org.springframework.web.client.RestTemplate' that could not be found. 的问题
 */
@Configuration
public class ConfigBean {

    @Bean
    RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
